import Vue from 'vue'
import VueRouter from 'vue-router'
import Index from '../views/Index.vue'
import Classification from '../views/Classification.vue'
import Indent from '../views/Indent.vue'
import My from '../views/My.vue'
import NotFound from '../views/NotFound.vue'
Vue.use(VueRouter)
const routes = [
    {
        path: '/',
        redirect: "/index"
    },
    {
        path: '/index',
        component: Index,
        name: 'Index'
    },
    {
        path: '/classification',
        component: Classification,
        name: 'Classification'
    },
    {
        path: '/indent',
        component: Indent,
        name: 'Indent'
    },
    {
        path: '/my',
        component: My,
        name: 'My'
    },
    {
        path: '*',
        component: NotFound
    }
]
const router = new VueRouter({
    routes
})
export default router